#ifndef  __SERIAL_H__
#define  __SERIAL_H__


typedef struct  serial_cfg_t{
	int  baudrate;
	int  databits;
	int  stopbits;
	int  parity;
}serial_cfg_t;


extern  int  serial_open(char *devname);
extern  int  serial_config(int fd,serial_cfg_t conf);
extern  void  serial_close(int fd);


#endif

